package oop2.Task2;

public class DriverTest {
    public static void main(String[] args) {
        Driver driver = new Driver("迈克", 20);
        Car car = new Car("宝马", 38, 1.8, 5);
        Airplane airplane = new Airplane("空客", "旧金山-北京", 32000, 50);
        Tank tank = new Tank("陆战之王", 5.8, 2);
        Tractor tractor = new Tractor(3, 1000);
        Ship ship = new Ship(12, 35000, 100);
        driver.drive(car);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        driver.drive(airplane);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        driver.drive(tank);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        driver.drive(tractor);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        driver.drive(ship);


    }
}
